#include<stdio.h>
int main()
{
	int i;
	double sign=1.0;
	double sum=0.0,s;
	for (i=1;i<=100;i++)
	{
		s=sign/i;
		sum+=s;
		sign=-sign;
	}
	printf("%lf",sum);
	return 0;
 } 
